home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / AppsToGo / AppsToGo.src / AppsToGo.Changes / DTS.Draw / Menu.c.df < prev    next >
Encoding:
Text File  |  1993-06-18  |  2.2 KB  |  68 lines  |  [TEXT/MPS ]

  1. File #1: b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:Menu.c
  2. File #2: a:Desktop Folder:AppsToGo.src:DTS.Draw:Menu.c
  3.  
  4. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:Menu.c"; Line 7; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:Menu.c"; Line 7)
  5. ** Copyright © 1990-1992 Apple Computer, Inc.
  6.  
  7. ** Copyright © 1990-1993 Apple Computer, Inc.
  8.  
  9.  
  10. Extra lines in 2nd before 11 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:Menu.c"; Line Δ11; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:Menu.c"; Line 11:18)
  11. /* You may incorporate this sample code into your applications without
  12. ** restriction, though the sample code has been provided "AS IS" and the
  13. ** responsibility for its operation is 100% yours.  However, what you are
  14. ** not permitted to do is to redistribute the source as "DSC Sample Code"
  15. ** after having made changes. If you're going to re-distribute the source,
  16. ** we require that you make it clear in the source that the code was
  17. ** descended from Apple Sample Code, but that you've made changes. */
  18.  
  19.  
  20.  
  21. Extra lines in 2nd before 257 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:Menu.c"; Line Δ257; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:Menu.c"; Line 265:276)
  22.         case mOther:
  23.             switch (menuItem) {
  24.                 case kPenSize:
  25.                     NewDocumentWindow(&frHndl, 'PENS', false);
  26.                     break;
  27.                 case kBorderColor:
  28.                 case kContentColor:
  29.                     ChangeColor(frHndl, window, menuItem);
  30.                     break;
  31.             }
  32.             break;
  33.  
  34.  
  35.  
  36. Extra lines in 2nd file (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Draw:Menu.c"; Line 484Δ; File "a:Desktop Folder:AppsToGo.src:DTS.Draw:Menu.c"; Line 505:533)
  37. /*****************************************************************************/
  38.  
  39.  
  40.  
  41. #pragma segment Menu
  42. Boolean    DoAdjustOtherMenu(WindowPtr window)
  43. {
  44.     MenuHandle        menu;
  45.     Boolean            haveDocument;
  46.     FileRecHndl        frHndl;
  47.  
  48.     if (IsDAWindow(window)) return(false);
  49.  
  50.     menu = GetMHandle(mOther);
  51.  
  52.     haveDocument = (window = FrontWindowOfType(kwIsDocument, true)) ? true : false;
  53.     frHndl = (haveDocument) ? (FileRecHndl)GetWRefCon(window) : nil;
  54.  
  55.     if (haveDocument) {
  56.         EnableItem(menu, kPenSize);
  57.         EnableItem(menu, kBorderColor);
  58.         EnableItem(menu, kContentColor);
  59.     }
  60.  
  61.     return(false);
  62. }
  63.  
  64.  
  65.  
  66.  
  67. *** EOF on both files ***
  68.